﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Gerenciador
{
    public partial class Load : Form
    {
        public Desenho L = new Desenho();
        System.Windows.Forms.Form PK;

        public Load()
        {
            InitializeComponent();
        }

        private void Load_Load(object sender, EventArgs e)
        {
            CheckForIllegalCrossThreadCalls = false;
            Desenho Draw = new Desenho();
            Draw.IniciarEmFade(this, 90);
            
            
        }

        public void Piscar()
        {
            L.PiscaPisca(label1, System.Drawing.Color.Yellow, System.Drawing.Color.White, 500);

        }

        public void Fechar()
        {
            this.Close();
        }


        public void VincularForm(System.Windows.Forms.Form PRINCIPAL)
        {
            PK = PRINCIPAL;

        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void Load_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (L.PiscaParar == false)
                e.Cancel = true;
        
        }


        
    }
}
